package com.yeh.model.po;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


/**
 * <p>Title: User</p>
 * <p>Description: 用户实体类</p>
 * <p>Company:  Co.</p>
 * <p>Package: com.yeh.model</p>
 * @author <a href="mailto:yehshuai@126.com">叶帅</a>  
 * <p>DateTime: 2015年8月28日 ★  上午10:07:05</p> 
 * @Version V1.0.0
 */
@Entity
@Table(name="sysuser")
public class SysUser implements Serializable{
	
	/**
	 * @Fields serialVersionUID : 
	 */
	private static final long serialVersionUID = -1020133595502994807L;

	private String userId;
	
	private String userName;
	
	private String passWord;
	
	private int userType;
	
	private Date createDateTime;
	
	private Date modifyDateTime;

	@Column(name ="userid")
	@GeneratedValue(generator = "paymentableGenerator")
    @GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	@Id
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@javax.persistence.Column(name = "username")
    @Basic
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@javax.persistence.Column(name = "password")
    @Basic
	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}
	
	@javax.persistence.Column(name = "usertype")
    @Basic
	public int getUserType() {
		return userType;
	}

	public void setUserType(int userType) {
		this.userType = userType;
	}
	
	@javax.persistence.Column(name = "createdatetime")
	@Basic
	public Date getCreateDateTime() {
		return createDateTime;
	}

	public void setCreateDateTime(Date createDateTime) {
		this.createDateTime = createDateTime;
	}
	@javax.persistence.Column(name = "modifydatetime")
	@Basic
	public Date getModifyDateTime() {
		return modifyDateTime;
	}

	public void setModifyDateTime(Date modifyDateTime) {
		this.modifyDateTime = modifyDateTime;
	}
	
	public SysUser(){}
	
	public SysUser(String userId,String userName,String passWord,Date createDateTime){
		this.userId = userId;
		this.userName = userName;
		this.passWord = passWord;
		this.createDateTime = createDateTime;
	}
	
	public SysUser(String userId,String userName,String passWord,int userType,Date createDateTiem,Date modifyDateTime){
		this.userId=userId;
		this.userName=userName;
		this.passWord=passWord;
		this.userType=userType;
		this.createDateTime=createDateTiem;
		this.modifyDateTime=modifyDateTime;
	}
}
